<?php
session_start();
if (isset($_SESSION['openid'])){
    include '../c/config.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    $queryT=$mysqli->query("select name from ".$tableVer."_team where openid='".$_SESSION['openid']."' limit 0, 1");
    if($queryT->num_rows>0){
       $getTeam=$queryT->fetch_assoc();
       
       $queryT=$mysqli->query("select name from ".$tableVer."_team where openid='".$_SESSION['openid']."' limit 0, 1");
       
       
       echo json_encode(array('s'=>'y','n'=>$getTeam['name']));
    }else{
        
        echo json_encode(array('s'=>'n'));
    }
    
    
}
?>
